<html>
<head>
<link href="../../../Objects/sofa_white.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="contenu">		
	        <center><img src="data/pics/instrument.png"  name="Tooth" align="middle">

		<h3>Instrument visual model</h3></center>

		<div id="orangeText">Description:</div>
		
		<p align="left">
		In this scene, we build the basics for a moving object. 

		</p>

		<div id="orangeText">Key points:</div>
		<ul>
			<li>First, we put a gravity in the whole scene with the <b>Gravity</b> component.</li>
			<li>We set the instrument as a <b>MechanicalObject</b>. It describes the state of the particles of the object.</li>
			<li>To compute the states at each time step, we need a time integrator, like the <b>EulerImplicitSolver</b>.</li>
			<li>We need a linear solver, like <b>CGLinearSolver</b>, to solve the linear system generated with our implicit solver.</li>
			<li>We finally add a mass to the object with the <b>UniformMass</b> component.</li>
		</ul>

		<div id="orangeText">Note:</div>
		<p align="left">The gravity can be set in a node with the vec3d argument <b>gravity</b> instead of with a component.</p>
		<p align="left">See other tutorials to learn more about time integration.</p>
		
		<br><center><h3><a href="dentalSurgery_04.scn">Next</a></center></h3>

	</div>
</body>
</html>
